/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package org.ossr.portlets.pm.model;

import com.liferay.portal.kernel.annotation.AutoEscape;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.expando.model.ExpandoBridge;

import java.io.Serializable;

import java.util.Date;

/**
 * The base model interface for the PrivateMessage service. Represents a row in the &quot;model_PrivateMessage&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This interface and its corresponding implementation {@link org.ossr.portlets.pm.model.impl.PrivateMessageModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link org.ossr.portlets.pm.model.impl.PrivateMessageImpl}.
 * </p>
 *
 * <p>
 * Never modify or reference this interface directly. All methods that expect a private message model instance should use the {@link PrivateMessage} interface instead.
 * </p>
 *
 * @author Edgar Zavala
 * @see PrivateMessage
 * @see org.ossr.portlets.pm.model.impl.PrivateMessageImpl
 * @see org.ossr.portlets.pm.model.impl.PrivateMessageModelImpl
 * @generated
 */
public interface PrivateMessageModel extends BaseModel<PrivateMessage> {
	/**
	 * Gets the primary key of this private message.
	 *
	 * @return the primary key of this private message
	 */
	public long getPrimaryKey();

	/**
	 * Sets the primary key of this private message
	 *
	 * @param pk the primary key of this private message
	 */
	public void setPrimaryKey(long pk);

	/**
	 * Gets the message id of this private message.
	 *
	 * @return the message id of this private message
	 */
	public long getMessageId();

	/**
	 * Sets the message id of this private message.
	 *
	 * @param messageId the message id of this private message
	 */
	public void setMessageId(long messageId);

	/**
	 * Gets the owner id of this private message.
	 *
	 * @return the owner id of this private message
	 */
	public long getOwnerId();

	/**
	 * Sets the owner id of this private message.
	 *
	 * @param ownerId the owner id of this private message
	 */
	public void setOwnerId(long ownerId);

	/**
	 * Gets the recepients of this private message.
	 *
	 * @return the recepients of this private message
	 */
	@AutoEscape
	public String getRecepients();

	/**
	 * Sets the recepients of this private message.
	 *
	 * @param recepients the recepients of this private message
	 */
	public void setRecepients(String recepients);

	/**
	 * Gets the creation date of this private message.
	 *
	 * @return the creation date of this private message
	 */
	public Date getCreationDate();

	/**
	 * Sets the creation date of this private message.
	 *
	 * @param creationDate the creation date of this private message
	 */
	public void setCreationDate(Date creationDate);

	/**
	 * Gets the is reply of this private message.
	 *
	 * @return the is reply of this private message
	 */
	public boolean getIsReply();

	/**
	 * Determines if this private message is is reply.
	 *
	 * @return <code>true</code> if this private message is is reply; <code>false</code> otherwise
	 */
	public boolean isIsReply();

	/**
	 * Sets whether this {$entity.humanName} is is reply.
	 *
	 * @param isReply the is reply of this private message
	 */
	public void setIsReply(boolean isReply);

	/**
	 * Gets the reply date of this private message.
	 *
	 * @return the reply date of this private message
	 */
	public Date getReplyDate();

	/**
	 * Sets the reply date of this private message.
	 *
	 * @param replyDate the reply date of this private message
	 */
	public void setReplyDate(Date replyDate);

	/**
	 * Gets the deleted of this private message.
	 *
	 * @return the deleted of this private message
	 */
	public boolean getDeleted();

	/**
	 * Determines if this private message is deleted.
	 *
	 * @return <code>true</code> if this private message is deleted; <code>false</code> otherwise
	 */
	public boolean isDeleted();

	/**
	 * Sets whether this {$entity.humanName} is deleted.
	 *
	 * @param deleted the deleted of this private message
	 */
	public void setDeleted(boolean deleted);

	/**
	 * Gets the readed of this private message.
	 *
	 * @return the readed of this private message
	 */
	public boolean getReaded();

	/**
	 * Determines if this private message is readed.
	 *
	 * @return <code>true</code> if this private message is readed; <code>false</code> otherwise
	 */
	public boolean isReaded();

	/**
	 * Sets whether this {$entity.humanName} is readed.
	 *
	 * @param readed the readed of this private message
	 */
	public void setReaded(boolean readed);

	/**
	 * Gets the subject of this private message.
	 *
	 * @return the subject of this private message
	 */
	@AutoEscape
	public String getSubject();

	/**
	 * Sets the subject of this private message.
	 *
	 * @param subject the subject of this private message
	 */
	public void setSubject(String subject);

	/**
	 * Gets the body of this private message.
	 *
	 * @return the body of this private message
	 */
	@AutoEscape
	public String getBody();

	/**
	 * Sets the body of this private message.
	 *
	 * @param body the body of this private message
	 */
	public void setBody(String body);

	/**
	 * Gets a copy of this private message as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
	 *
	 * @return the escaped model instance
	 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
	 */
	public PrivateMessage toEscapedModel();

	public boolean isNew();

	public void setNew(boolean n);

	public boolean isCachedModel();

	public void setCachedModel(boolean cachedModel);

	public boolean isEscapedModel();

	public void setEscapedModel(boolean escapedModel);

	public Serializable getPrimaryKeyObj();

	public ExpandoBridge getExpandoBridge();

	public void setExpandoBridgeAttributes(ServiceContext serviceContext);

	public Object clone();

	public int compareTo(PrivateMessage privateMessage);

	public int hashCode();

	public String toString();

	public String toXmlString();
}